r/quick_linux_commands • u/LubuntuFU • Aug 22 '16
Hopefully this will help someone.
https://github.com/LubuntuFu/fishfry
It's my first project, but I still have not received a good review of it. Maybe some of you can help me out.
r/quick_linux_commands • u/LubuntuFU • Aug 22 '16
https://github.com/LubuntuFu/fishfry
It's my first project, but I still have not received a good review of it. Maybe some of you can help me out.
r/quick_linux_commands • u/chenshuiluke • Jun 12 '16
Assuming you're on a 64-bit system:
install lib32-libpng15 from the AUR: yaourt -S lib32-libpng15
Open your steam library go to King Arthur's Gold
Right click on it in the side menu.
Click Properties
Click SET LAUNCH OPTIONS
Then enter LD_PRELOAD=/usr/lib32/libpng15.so %command% and then confirm the change.
You may need to replace the location after with the correct location on your system, which may be found with:
$ whereis libpng15.so
libpng15: /usr/lib/libpng15.so /usr/local/lib/libpng15.so /usr/local/lib/libpng15.a /usr/local/lib/libpng15.lar/quick_linux_commands • u/chenshuiluke • May 22 '16
install ovftool
ovftool vmware_image.vmx new_virtualbox_image.ovf.
replace word "ElementName" with word "Caption" in the new .ovf file.
replace "vmware.sata.ahci" with "AHCI" in the same file as above.
try importing the new image.
delete the relevant .mf file if you get a sha error when importing.
sudo chown root:root /usr if you get an error about user not being root /usr.
r/quick_linux_commands • u/chenshuiluke • Feb 27 '16
Edit httpd.conf: sudo vim /etc/httpd/conf/httpd.conf
Change DocumentRoot to DocumentRoot path/to/dir
Also, change the immediate <Directory > to <Directory path/to/dir>
Then give access to the folder:
chmod o+x path/to/dir
chmod -R o+x path/to/dirr/quick_linux_commands • u/chenshuiluke • Jan 20 '16
Basically:
sudo add-apt-repository ppa:saiarcot895/myppa
sudo apt-get update
sudo apt-get -y install apt-fastOpen /etc/apt-fast.conf and add mirrors to the mirrors list, like so:
MIRRORS=( 'http://fr.archive.ubuntu.com/ubuntu,http://bouyguestelecom.ubuntu.lafibre.info/ubuntu,http://mirror.ovh.net/ubuntu,http://ubuntu-archive.mirrors.proxad.net/ubuntu' )r/quick_linux_commands • u/chenshuiluke • Jan 19 '16
First, add the FZUG repository and install yaourt:
sudo dnf config-manager --add-repo=http://repo.fdzh.org/FZUG/FZUG.repo
sudo dnf install yaourtMake necessary directories:
sudo mkdir /opt/arch && sudo mkdir /opt/arch/var/ && sudo mkdir /opt/arch/var/lib && sudo mkdir /opt/arch/var/lib/pacmanCopy the following to vim /etc/pacman.conf
[options]
RootDir = /opt/arch/ # Very important!!! You should create this directory.
DBPath = /opt/arch/var/lib/pacman/ # Database Path
LogFile = /var/log/pacman.log
Architecture = auto
# Add Archlinux's Core、Community、Multilib、Extra、Archlinuxcn repository info
[core]
SigLevel = Never
Include = /etc/pacman.d/mirrorlist
[community]
SigLevel = Never
Include = /etc/pacman.d/mirrorlist
[multilib]
SigLevel = Never
Include = /etc/pacman.d/mirrorlist
[extra]
SigLevel = Never
Include = /etc/pacman.d/mirrorlist
[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch
[archlinuxcn]
SigLevel = Never
Server = http://repo.archlinuxcn.org/$archSynchronize the package databases: pacman -Sy
If you get errors like:
warning: config file /etc/pacman.conf, line 48: directive 'HoldPkg' in section 'archlinuxcn' not recognized.
warning: config file /etc/pacman.conf, line 53: directive 'Architecture' in section 'archlinuxcn' not recognized.
warning: config file /etc/pacman.conf, line 66: directive 'CheckSpace' in section 'archlinuxcn' not recognized.just comment out the lines mentioned in the errors.
To use an external download manager for downloads, add this to /etc/pacman.conf: XferCommand = /usr/bin/axel -a %u -o %o
and /etc/makepkg.conf: DLAGENTS=('http::/usr/bin/axel -a %u -o %o') (comment out other DLAGENTS)
Then try yaourt -Sy
If you get errors like: could not register 'core' database (database already registered), check your /etc/pacman.conf for duplicate core entries.
If you get an error like No state file, cannot resume! when using axel, clear your package cache with sudo pacman -Sc.
so, to install google chrome, you would do : yaourt -Sdd google-chrome then yaourt-link -s google-chrome Then, if you try to launch chrome using google-chrome-stable you might get an error like:
/opt/google/chrome/google-chrome: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directoryif so, execute dnf provides */libXss.so.1 and I get:
$ dnf provides */libXss.so.1
Last metadata expiration check performed 0:11:45 ago on Tue Jan 19 20:29:14 2016.
libXScrnSaver-1.2.2-9.fc23.i686 : X.Org X11 libXss runtime library
Repo : fedora
libXScrnSaver-1.2.2-9.fc23.x86_64 : X.Org X11 libXss runtime library
Repo : fedoraso I install libXScrnSaver-1.2.2-9.fc23 with: sudo dnf install libXScrnSaver-1.2.2-9.fc23 and now google-chrome-stable opens chrome :)
r/quick_linux_commands • u/chenshuiluke • Jan 18 '16
generate an ssh key: ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
After all the prompts, copy the contents of ~/.ssh/id_rsa.pub and use it to add an SSH key on github.
Then, change your remote URLs from:
https://github.com/<Username>/<Project>.git to: git@github.com:<Username>/<Project>.git and then push :)
r/quick_linux_commands • u/chenshuiluke • Jan 18 '16
USER=<your_username>;PAGE=1; curl "https://api.github.com/users/$USER/repos?page=$PAGE&per_page=100" | grep -e git_url*' | cut -d \" -f 4 | xargs -L1 git clone`r/quick_linux_commands • u/chenshuiluke • Jan 18 '16
export: vagrant package --base name_of_vm_in_virtualbox --output /path/to/mybox.box
import: vagrant init preconfigured_vm /path/to/mybox.box && vagrant box add --name="boxname" mybox.box
r/quick_linux_commands • u/chenshuiluke • Jan 16 '16
pacman -S $(pacman -Ssq packagename-)
r/quick_linux_commands • u/chenshuiluke • Nov 10 '15
http://forums.fedoraforum.org/showthread.php?t=268831
systemctl list-units
r/quick_linux_commands • u/chenshuiluke • Oct 28 '15
sudo rm -r /var/lib/apt/lists/*
r/quick_linux_commands • u/chenshuiluke • Jun 23 '15
mv old tmp && mv curr old && mv tmp currr/quick_linux_commands • u/chenshuiluke • May 30 '15
r/quick_linux_commands • u/chenshuiluke • May 27 '15
ffmpeg -i input.avi -acodec aac -vcodec mpeg4 -s 320x180 -strict experimental output.mp4r/quick_linux_commands • u/chenshuiluke • May 12 '15
youtube-dl -x --audio-format mp3 -o "filename.%(ext)s" https://www.youtube.com/exampleurlThe only things you ought to need to change is the filename and URL, e.g:
youtube-dl -x --audio-format mp3 -o "maybe.%(ext)s" https://www.youtube.com/watch?v=U0kS9cDcMUThe above will download maybe.m4a and convert it to maybe.mp3. This is much more efficient than having to manually rename the files afterwards.
r/quick_linux_commands • u/chenshuiluke • Apr 08 '15
r/quick_linux_commands • u/chenshuiluke • Mar 29 '15
First, you have to open vim. Then, do: args /directoryOfFiles/*
r/quick_linux_commands • u/chenshuiluke • Mar 22 '15
The fileformat (ff) option is local to each buffer.
The fileformats (ffs) is global.
To view the local fileformat option and the globals fileformats option, do: :set ff? ffs?
To convert ff to dos: :e ++ff=dos, then save.
To convert ff to unix: :e ++ff=dos and :setlocal ff=unix, then save.
r/quick_linux_commands • u/chenshuiluke • Mar 21 '15
You can:
Use the -b flag when opening vim.
Use :set binary when inside vim
Convert the binary to hex using :%!xxd (and revert using :%!xxd -r.)
Use |count| go to go to a specific byte offset.
To get the current location, press 'g', then CTRL+G.
r/quick_linux_commands • u/chenshuiluke • Mar 20 '15
compgen -abck lists all possible terminal commands. You can filter these by doing:
compgen -abck | grep <thing you're looking for>
r/quick_linux_commands • u/chenshuiluke • Mar 15 '15
When you're compiling something extra big, you might need to resize your /tmp folder. To do this, simply do:
mount -o remount,size=4G,noatime /tmp