Check my favorite apps on Linux.
🔅 Run MacOS apps on Linux, use Darling.
🔅 Run Android apps on Linux, use Anbox.
🔅 Find in linux with command lines ⇾ link.
🔅 Cannot move files to the trash/wrong owner ⇾ link.
🔅 Gnome screenshot ⇾ link.
🔅 Windows shrink drive in windows ⇾ link (partition, resize disk drive, hard disk).
🔅 Type Vietnamese in SublimeText, install
vn ime
(exactly like that). Press F2
for using.🔅 Look and kill an app process:
🔅 Install file
.bin
, .run
🔅 Make a script executable:
chmod a+x script_file
🔅 Unzip a file,
🔅 Terminal multi windows:
🔅 Add bookmark for evince (default pdf reader)
F9
: hide/show sidebar
- Menu on the top right > Add bookmarks
- Click on bookmark and rename it
Ctrl
+Shift
+S
to save (instead ofCtrl
+S
)
🔅 Remove PPA from ubuntu by terminal. For example, The repository 'http://ppa.launchpad.net/b-eltzner/qpdfview/ubuntu artful Release' does not have a Release file. Remove the file b-eltzner-qpdfview-ubuntu from directory /etc/apt/sources.list.d
Or using below command lines
🔅 Get ip address:
ifconfig
🔅 Make Monday as the start of the week:
🔅 Add / Remove / Manage app icon in launcher:
🔅 Change ubuntu logo in settings: replace
🔅 Turn off animation open and minimize windows on ubuntu 17.10 and later (gnome desktop): Gnome Tweak Tools > Apperance > Animations OFF
🔅 Choose between "lightdm" and "gdm3" (ref):
🔅 Save / Load dconf (ref):
~/.config/dconf/user
🔅 Save / load custom keyboard shortcuts (ref)
🔅 Completely remove LibreOffice,
🔅 Remove snap store
🔅 Uninstall snap applications
🔅 Convert office's files to pdf
🔅 Modify / Add icon in launcher: alacarte" (Main Menu, can be found in App Store).
🔅 Force Unity Dash to index all files on Home
🔅 Sync one folder to another (more info)
a
Do the sync preserving all filesystem attributes
v
run verbosely
u
only copy files with a newer modification time (or size difference if the times are equal)
-delete
delete the files in target folder that do not exist in the source
🔅 Make a shortcut link to a folder/file in linux terminal ⇾ link.
🔅 Shortcut to a folder in linux ⇾ link.
🔅 Thumbnail nautilus: go to setting, set and apply this line.
🔅 Shorten directory in terminal
- Temporarily, just enter
PS1='\u:\W\$ '
en press enter.
- Permanently, open
sudo gedit ~/.bashrc
and find
- Remove
@\h
and replace\w
by\W
so that it becomes,
- Save, exit, close terminal and start another to see the result.
🔅 Right click nautilus "Open as Administrator":
🔅 Mount iso file on linux
If you mount another iso file to the same <folder>, it will replace the current one.
🔅 Extract a iso file: first, mount it like in previous tut to a folder named
iso
then copy all the contents in iso
to some folder you want.🔅 Sync files with mega right on terminal
- Install megatools:
- Using megatools, cf the main website.
- Create a condig file which stores your login information (be careful, everyone can see your pass)
vim
opens and type
If you have back slash in your password, you must escape it with another backslash
- Quit
vim
and save the file by pressingESC
and then:wq!
- Upload a file:
megaput --path /Root/<folder> file
- See the list of file on remote:
megals
- Upload a folder:
megacopy --local <folder> --remote <folder>
- Download from link:
megadl <mega-link>
- Download a single file:
megaget <file>
- Download from uploaded directory:
🔅 Save a directory a
$PATH
of local profile.🔅 Copy files from ubuntu to iPhone iOS iPad
- Don't need to install any files if one needs to copy photos/videos from iphone to ubuntu, one can use gThumb to do this or just use file manager to copy.
- If one wants to copy files to iphone. Follow this one
🔅 Check the current path:
pwd
🔅 Tweaks for ubuntu on surface book ⇾ link.
🔅 App
linux-surface
.🔅 How to add existing user to an existing group (ref)
🔅 Change ownership of a folder and its children
🔅 Check the permission of curent directory:
🔅 Scale matlab: need to install matleb version >= R2017b
🔅 Launching matlab without graphic ui (ref)
🔅 Cannot open matlab without sudo: change the owner permission of folder /home/thi/.matlab to thi
Another solution: suppose that matlab is installed on a user's directory and you have already add this to the
$PATH
. IT's only work if you use matlab
(not sudo matlab
). Then dofrom this, you can
sudo matlab
🔅 Matlab drive connector: after installing, run
🔅 How to install matlab silently (only with command lines) on linux? (if below doesn't work, you can check here, my method is different from this one)
- Suppose that you have 2 dvd iso files which contains the installation of matlab (
dvd1.iso
anddvd2.iso
)
- For the activation, you have
libmwservices.so
andlicense_standalone.lic
- First, you need to extract 2 dvd iso files to a common folder named
install_matlab
in/home/thi/
- Create a new folder to install matlab called
matlabR
in/home/thi/
- Extract all files in 2 iso files to folder
install_matlab
like the other tut (search for "mount").
- Run below command line
- After the installation, copy file
license_standalone.lic
to/home/thi/matlabR/licenses/
- Copy file
libmwservices.so
to/home/thi/matlabR/bin/glnxa64/
- Try running matlab:
/home/thi/matlabR/bin/matlab
- If you have an error like,
- Make linux recognize your matlab command
matlab
like in the instruction 40.
🔅 Make linux recognize matlab command
- Suppose that you have installed matlab on
/home/thi/matlabR
- You need to add above directory to the
$PATH
so that the system can recognize yourmatlab
command
- You can use
echo $PATH
to check if the path is located in it or not.
🔅 Remove matlab on linux: simply
🔅 Don't show "Turn on wifi hotspot..." for clicking => try: click on "Network" and then "Wifi" in Settings.
🔅 Share terminal for other (via SSH): using Teleconsole
🔅 Download a direct link by terminal
🔅 Download from google drive by terminal
- Download as usual without terminal by a web browser
- Open Downloads windows of the browser and then copy the download link.
- Stop the download process
- Use the command link in 33 where
<direct-link>
is the link copied above.
🔅 Use
ssh
to get access to another computer in the same network (LAN)- Follow (a little bit) here.
- On the remote machine
- update and upgrade install
- install
openssh-server
- open
/etc/ssh/sshd_config
and uncomment onPort 22
and lines starting withHostkey...
- start the network:
sudo service ssh start
- stop the network:
sudo service ssh stop
- check if the network is running or not?
sudo service ssh status
- Check the current ip:
ifconfig
: look on the inet
- On the local machine
8. Install the same tool and usessh username@remote-host
🔅 Connect
ssh
to a virtual machine (the same network)- Install openssh for both client and server machine
- On server machine, check ssh is running or not
🔅 Download playlist audio youtube, using
youtube-dl
🔅 Install TOR Browser
Using vpnbook and its tutorial. Note that, at the last step, we need to run with
sudo
! Note: very low speed!🔅 Add shortcut keys for Rhythmbox Music Player -> read this.
- Enable plugin "MPRIS D-Bus interface".
- Add custom shortcuts keyboards as
- Play/Pause:
rhythmbox-client --play-pause
- Next:
rhythmbox-client --next
- Previous:
rhythmbox-client --previous
🔅 Convert
.ts
videos to .mp4
🔅 Mp3 tag editor:
🔅 Spotify controller shortcut keyboards on Ubuntu (ref): using below commands for controlling playbacks in spotify, put them in a shortcut keys on ubuntu:
🔅 Resize multiple photos (keep the ratio/scale) (more options):
🔅 Youtube Music Controller for Linux:
- Download and install this app.
- Change to Youtube Music interface.
- Remove all shortcut keyboards that look like the ones you wanna set in the app in Ubuntu system (Keyboard shortcuts).
- On taskbar, right click on the You Tube Music app > Desktop settings > Hotkeys > Set your keyboards (eg.
Ctrl+Shift+>
for next track,Ctrl+Shift+<
for previous track,Ctrl+Shift+Space
for play/pause track).
🔅 Xbox Controller on Ubuntu:
If you cannot connect controller to bluetooth (ref)
🔅 Install GOG's games: Open Lutris > Search Lutris.net > Install with option "GOG". Installed from GOG Galaxy may be not working but with this method is working!
🔅 Add icon in the Lutris windows:
- CLick on "+" (Add Game)
- Tab Game info: "Name" the game + choose "Runner".
- Tab Game options: "Excutable" choose
🔅 Add icon on Ubuntu/POP!_OS launcher: on Lutris interface, right click on a game > "Create application menu shortcut", it will appear on the launcher after that. You can use "alacarte" (Main Menu, can be found in App Store).
🔅 System monitor in terminal: vtop.
- Method 1 -- To install font, copy all font file (eg.
.ttf
) to~/.local/share/font/
. For global, it's/usr/share/fonts
.
- Method 2 -- Open with Font Viewer and then click on Install.
🔅 Problem save file as
root
user and cannot open later ⇾ link.🔅 Prevent bluetooth devices disconnected after sleep ⇾ link.
🔅 Failed to load module 'canberra-gtk-module
🔅 nvidia docker signatures invalid. The following signatures were invalid: EXPKEYSIG
🔅 bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
🔅 dpkg: error processing package install-info
🔅 APT had planned for dpkg to do more than it reported back
👉 Check Docker & GPU.