I have an application in Linux that installs from a CD-ROM Device.
When the CD-ROM is inserted into the Drive, the autorun feature runs the installation script in an xterm window. Now when the installation is over, I do an 'exit 1' , and the xterm window prompts the user to 'press any key to close the window'. My problem is that I would like the script to eject the CD-ROM Drive after the Installation is over.
However since the installation script is still running from the CD-ROM Drive, the script cannot unmount the CD-ROM Drive and eject the Drive.
Could any please give me some idea of how the script could possibly eject the CD-Drive after Installation?
You could use a local installation script that refers to the installation files on the CD. That does mean your user will have to copy the file locally in order to start running the installation program.
Another option could be that your installation program could create the supplementary install file when the user starts the install process from CD.
Before the installer starts, copy the installer and an "eject CD" shell script to the /tmp directory on the Linux machine. Then, execute the installer from /tmp and create a shell script that executes, or find a way to execute, the following commands:
sudo umount /dev/cdrom
eject /dev/cdrom
Also, on some machines it's sudo umount /dev/sr0, but /dev/cdrom should work.
Related
On my desktop I added a shorctut to my bat file, which I can run with CTRL+F10 key-presses.
del z:\WVW_LAUNCH\WVW_LAUNCH
E:\upx-4.0.1-win64\upx.exe E:\WVW_RPI3_EQ_CROSS\WVW_LAUNCH
copy E:\WVW_RPI3_EQ_CROSS\WVW_LAUNCH z:\WVW_LAUNCH\
pause
Z:\ is the SMB share on my Raspberry Pi.
This is using an exe packer, and it works fine, except, that when I switch my KVM switch to my RPi, to execute it, it says:
sudo: unable to execute ./WVW_LAUNCH: Text file is busy
Then I have to wait approximately 5 to 10 seconds before I can run the executable.
QUESTION: Does anybody know how to disable the cache in my /home/pi/WVW_LAUNCH directory? (so I do not have to wait).
How to disable cache on Linux, over Samba share.
I am a complete newbie to Linux and trying to open an AppImage called Magick which is an Imagemagick application.
I tried right clicking on the AppImage and checked "run file as an executable" option but that didn't work. Another thing that I tried is running this command,
chmod a+x magick.AppImage
This gives me an error,
chmod: cannot access 'magick.AppImage': No such file or directory
I have also tried running the file by navigating into the folder that contains the file and opening up the terminal there but still no luck.
I am running Ubuntu on Oracle VM VirtualBox.
ImageMagick is a command-line tool, you don't run it by clicking on it.
To run it in a terminal you need to
Set the executable flag on the .AppImage (once for all): chmod +x TheApp.AppImage
Then to run it just invoke the AppImage: ./TheApp.AppImage <arg1> <arg2> ....
If the directory with your .AppImage is in your PATH, you can remove the ./ (or whatever directory the AppImage is in).
ImageMagick is also available as a regular application from your Ubuntu repository: sudo apt install imagemagick
I'm trying to install the Touchmouse server for Linux. The software is a perl script that I have tried to run via terminal, using the perl command. The software I'm trying to run is here: https://github.com/mycroes/touchmoused
This is the output from terminal:
:~/Desktop/touchmoused-master$ perl touchmoused
Can't open /dev/uinput: Permission denied at touchmoused line 242.
:~/Desktop/touchmoused-master$ Established under name '<name of computer>'
I am new to Linux but have some experience with Terminal.
Thanks!
From the creator of the script:
Just download it, chmod +x and run it (as root, it needs access to /dev/uinput and it wants to register with avahi).
Regards,
http://blog.mycroes.nl/2011/04/touchmoused-logitech-touch-mouse-server.html
Your user won't have permissions for /dev/uinput, also check that /dev/uinput is the correct location for your distribution, the script allows you to override this with the -device flag.
So either make it executable so you don't have to enter 'perl' and then run with sudo or have root run it on startup.
does anyone know how to install SlamData on linux? I've download the file on my machine, and double click it, but it opens a green screen and nothing happens. Thanks.
Download the linux installer file;
add executable permission
chmod +x slamdata_unix_2_1_8.sh
Run the executable and follow instructions;
./slamdata_unix_2_1_8.sh
After installation, To start SlamData, cd to your installation dir, issue the following command;
./SlamData
For further documentation visit http://slamdata.com/documentation/
I've downloaded and unzipped ffmpeg at custom directory in my Ubuntu linux. Now I want to run this ffmpeg using terminal like I run on windows using command prompt. But everytime it says "ffmpeg: command not found". My question is how can I run ffmpeg using terminal through extracted libraries
thanks
First you need to make sure the file has execute permissions... or just add it with chmod +x filename
Secondly either the executables must be on the path or you need to specify the path to the executable. What I mean by this is, under Windows if you are in a directory with an executable you can type in the executable name and it will work... this is not the case for Linux. If you are in the executable's directory you execute the command like this ./command. The dot means you are executing a file in the current directory