There are few methods how to determine your linux file system. Below are commands that I usually use.
$ df -Th
$ df -Th | grep "^/dev"
$ fsck -N /dev/sd*
$ lsblk -f
$ mount | grep "^/dev"
$ cat /etc/fstab
$ df -n
$ mount -p
$ zfs list
$ fstyp /dev/rdsk/c*d*s*
Last login: Tue Jan 2 12:11:49 2018 from 188.8.131.52
[hanief@master ~]$ mv 2017 /archive
[hanief@master ~]$ sudo mkdir 2018
[hanief@master ~]$ cd 2018
[hanief@master ~]$ vi goals.sh
[hanief@master ~]$ chmod +x goals.sh
[hanief@master ~]$ nohup ./goals.sh &
[hanief@master ~]$ exit
For some reasons you need to install GUI on your CentOS server. In my case, I having a bad time to install Oracle Database 12c in my CentOS using CLI. I don’t have plenty of times struggling with CLI environment. I have to finish my work as soon as possible so then I can enjoy my coffee. I just need a very minimal GUI to achieve my goal.
Follow the steps below;
- Install CentOS-7 – Minimal (of course)
- yum groupinstall “X Window System”
- yum install gnome-classic-session gnome-terminal nautilus-open-terminal control-center liberation-mono-fonts
- unlink /etc/systemd/system/default.target
- ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target
Now you have a CentOS-7 Minimal Desktop installation LIKE CentOS-6 Minimal Desktop
Posted in Install, Linux, UNIX
Tagged Centos, centos7, cli, desktop, gnome, gui, linux, minimal, zombie
Snipping Tool is not enabled by default in Wndows Server 2012 R2. To install Snipping Tool, just follow the next instructions:
- Go to Server Manager
- Click Manage in the upper right corner.
- Click Add Roles and Features.
- Click Next > Next > Next.
- At Server Selection select your server.
- Click Next > Next.
- At Features expand User Interfaces and Infrastructure.
- Check Desktop Experience.
- If an Add Roles and Features Wizard window pops up with a list of features required for Desktop Experience , just click Add Features.
- Click Next > Install.
- Restart your server. (Restart?? WTF..Stupid Windows)
Issue: Not able to connect to network/internet.
Caused by: Ethernet interfaces are not enabled by default.
Step 1: First, type “nmcli d” command in your terminal for quick list ethernet card installed on your machine:
Step 2: Type “nmtui” command in your terminal to open Network manager. After opening Network manager chose “Edit connection” and press Enter (Use TAB button for choosing options).
Step 3: Now choose you network interfaces and click “Edit”
Step 4: Configure DHCP. Choose “Automatic” in IPv4 CONFIGURATION and check Automatically connect check box and press OK and quit from Network manager.
Step 5: Reset network services. Run
service network restart
Now test your connection.
This warning/error ever happened to you? Whenever you try to ssh to your server or try to update your spamassassin (sa-update) you will get this error.
Last login: Mon Nov 6 11:17:54 2017 from 192.168.88.14
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
[root@sa ~]# sa-update
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Follow below steps to fix it.
- login to your server
- vi /etc/environment and add below lines
- Save and quit
When I bought my Mac, the
.bash_login file wasn’t there. I need to create it for myself so that I could put
functions, etc. in it.
Here are the steps if you would like to create one:
- Start up Terminal
cd ~/ to go to your home folder
touch .bash_profile to create your new file.
.bash_profile with your favorite editor (or you can just type
open -e .bash_profileto open it in TextEdit.
. .bash_profile to reload
.bash_profile and update any alias you add.