Normal view

There are new articles available, click to refresh the page.
Yesterday — 17 October 2024Main stream

Ubuntu : சும்மா இருந்ததால் வந்த சிக்கல்

By: Hariharan
17 October 2024 at 18:48

அக், 17 2024

இரவு ஒரு 10: 35 மணி இருக்கும் கணினியை திறந்து லாகின் செய்து விட்டு குரோமியம் உலவியில் தமிழ் லினக்ஸ் பாரத்தில் போட்ட கேள்விக்கு பதில் வந்ததா என்று பார்த்துக்கொண்டிருந்தேன்.

பார்த்துகொண்டிருக்கும் போது ஜேசன் அவர்களின் பதிவு தந்தி(Telegram App)யில் வந்தது. அதில் A2D நந்தா அவர்களின் CDK Offers மற்றும் CDKLabs பற்றிய சில செய்திகள் வந்தது. அவற்றையெல்லம் பார்த்துவிட்டு கணினியில் சுட்டியை சொடுக்கினேன் செய்தேன். எதற்கும் ஒத்துழைக்க வில்லை ஆனால் சுட்டி மட்டும் நகர்ந்தது. விசைப்பலகையை தட்டி டெர்மினலில் எதேனும் கட்டளைகளை பயன்படுத்தி குரோமியத்தினை நிறுத்திவிட்டு மீள் தொடங்கலாம் என நினைத்தேன். ஆனால் விசைகள் இயங்கின அதனுடைய உள்ளீட்டை கணிணி ஏற்கவில்லை.

திறன்பேசியில் தேடினேன்.

ரெடிட்டில் ஒரு பதிவு கிடைத்தது. அதில் குறிப்பிட்ட படி ctrl+alt+F3 யை அழுத்தினேன். பின்னர்

sudo systemctl status gdm 

கட்டளையிட்டேன் (inactive) நிலையில் இருந்தது. பின்னர் நான் lightdm பயன்படுத்துவதால் அதனுய நிலையை சரிபார்த்தேன்.

sudo systemctl status lightdm

அது இயக்கத்தில் இருந்தது. lightdm ஐ மீள்தொடக்கம் செய்தேன். பின்வரும் கட்டளை கொண்டு

sudo systemctl restart lightdm

மீள் தொடக்கம் செய்ததும் விசைப்பலகை சரியாக இயங்கியது. சுட்டியும் நன்றாக இயங்கியது.

நன்றாக இயங்கியதால் இந்த பதிவையும் எழுத முடிந்தது.

நன்றி.

https://www.redit.com/r/Ubuntu/comments/133js51/unable_to_click_in_but_mouse_moves_ubuntu/

ரெடிட் பதிவு

Before yesterdayMain stream

Kanchilug Monthly Meet – Oct ,13 2024

By: Hariharan
13 October 2024 at 16:30

Lightning Talk by Krishna

Topic : Desktop Customization : picom, pywal

Resource : Krishna S

SSD File System Comparison : https://www.linux.org/threads/comparison-of-file-systems-for-an-ssd.28780/

https://etherpad.wikimedia.org/p/KanchiLUGMMOct13

Notes on Choosing HDD to SSD Linux Installation migration

Chat GPT Prompt : how to backup current linux installation configuration files and packages list as a archive and apply on a new installation

Result

Backing up your current Linux installation’s configuration files and package lists is a great way to ensure you can easily restore or replicate your setup on a new installation. Here’s how you can do it:

Step 1: Backup Configuration Files

  1. Identify Configuration Files: Most configuration files are located in /etc. You may also have application-specific configurations in your home directory (like .bashrc, .vimrc, etc.).
  2. Create an Archive:
    You can create a compressed archive (like a tarball) of your configuration files. Run the following command:
   sudo tar -czvf config_backup.tar.gz /etc /home/your_username/.bashrc /home/your_username/.vimrc

Adjust the paths based on what configuration files you want to back up.

Step 2: Backup Installed Packages List

The method to back up the installed package list depends on your Linux distribution.

For Debian-based systems (like Ubuntu):

  1. Backup Installed Packages:
   dpkg --get-selections > package_list.txt
  1. Backup Sources List:
   sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup

For Red Hat-based systems (like Fedora, CentOS):

  1. Backup Installed Packages:
   rpm -qa > package_list.txt
  1. Backup Repositories:
   sudo cp -r /etc/yum.repos.d/ /path/to/backup/repo_backup/

Step 3: Create a Complete Backup Archive

Combine everything into one archive:

tar -czvf full_backup.tar.gz config_backup.tar.gz package_list.txt /etc/apt/sources.list.backup

Step 4: Restore on a New Installation

  1. Transfer the Backup: Copy the full_backup.tar.gz to your new installation.
  2. Extract the Backup:
   tar -xzvf full_backup.tar.gz
  1. Restore Configuration Files:
   sudo tar -xzvf config_backup.tar.gz -C /
  1. Restore Package List: For Debian-based systems:
   sudo dpkg --set-selections < package_list.txt
   sudo apt-get dselect-upgrade

#### For Red Hat-based systems:
You can reinstall packages from the list:

   xargs -a package_list.txt sudo dnf install -y
  1. Restore Sources List (Debian-based):
   sudo cp /etc/apt/sources.list.backup /etc/apt/sources.list
   sudo apt update

Step 5: Finalize and Reboot

After restoring everything, it’s a good idea to reboot your system to ensure all configurations take effect.

Notes:

  • Make sure to review any new configurations or installed packages after the restoration, as dependencies and versions may vary.
  • For user-specific configurations, you may want to back up the entire home directory or specific application directories.

This process should help you smoothly transition to a new Linux installation with your desired configurations and packages!

Chat GPT Prompt : I am in a plan of migrating linux os to a new file system which is xfs or zfs brtfs which on is good

Choosing between XFS, ZFS, and Btrfs depends on your specific needs and use cases. Here’s a breakdown of each file system’s strengths and considerations to help you decide:

XFS

Pros:

  • Performance: Excellent performance, especially for large files and high-performance workloads.
  • Scalability: Designed for scalability, making it suitable for high-capacity storage systems.
  • Mature: A well-established file system with a long history of stability.

Cons:

  • Features: Lacks some advanced features like snapshots and built-in RAID compared to ZFS and Btrfs.
  • Management: Does not have as many management tools as ZFS.

ZFS

Pros:

  • Data Integrity: Strong focus on data integrity with built-in checksumming.
  • Snapshots and Clones: Supports efficient snapshots and clones, allowing for easy backups and recovery.
  • Compression: Offers built-in compression options, which can save space.
  • RAID: Supports various RAID levels natively (ZRAID), enhancing redundancy.

Cons:

  • Memory Usage: Can require more RAM for optimal performance.
  • Complexity: More complex to set up and manage compared to traditional file systems.

Btrfs

Pros:

  • Snapshots and Subvolumes: Supports snapshots and subvolumes, making it flexible for backups and system management.
  • Built-in RAID: Offers support for multiple RAID levels.
  • Compression and Deduplication: Supports on-the-fly compression and deduplication.

Cons:

  • Stability: Still considered less mature than XFS and ZFS; while it has improved significantly, it may not be as stable for all workloads.
  • Performance: Can have variable performance depending on the workload and configuration.

Recommendations

  • For General Use: If you want stability and performance for general workloads, XFS is a great choice.
  • For Data Integrity and Advanced Features: If data integrity, snapshots, and advanced features are critical, ZFS is likely the best option.
  • For Flexibility and Modern Features: If you want modern features like snapshots and subvolumes with some flexibility, consider Btrfs.

Final Thoughts

Evaluate your specific use cases (e.g., data integrity, performance, ease of management) and the resources available on your system (e.g., RAM for ZFS). If possible, testing each file system in a non-production environment can also help you determine which one best meets your needs.

Ubuntu : How to make partitions mount at startup -தமிழில்

By: Hariharan
1 October 2024 at 17:42

அக் 01, 2024

உபுண்டு இயக்கமுறையில் வன்வட்டு மற்றும் திடநிலைவட்டினை இயங்குதளத்தின் தொடக்கத்தில் இணைப்பது எவ்வாறு என்பதனை இக்கட்டுரையில் காண்போம்.

பயனர் இடைமுக வழி (புதிய பயனர்களுக்கு) : வட்டுகள் (Disks) எனும் பயன்பாடானது தானமைவாகவே

/etc/fstab

கோப்பினை நமக்காக திருத்தி நமது தேவைக்கு ஏற்றார்போல மாற்றிக்கொள்ள வழிவகை செய்கிறது (இயங்குதளத்தினை உடைக்காமல்).

வட்டுகள் (Disks) பயன்பாட்டினை பயன்பாட்டு ஏவி (launcher) துணைகொண்டு இயக்க (disks) என பயன்பாட்டு ஏவியில் தேடவும்.

மேற்கண்ட துவக்கபட்டியில் காட்டபட்டுள்ளது போல வட்டுக்கள்(Disks) பயன்பாடு தோன்றும். அந்தப் பயன்பாட்டினை திறக்கையில் கீழே காட்டபட்டுள்ளது போல பட்டியலிடப்பட்டு வன்வட்டுக்களும் திடநிலை வட்டுக்களும் தோன்றும்.

நான் இரண்டாவது வன்வட்டினை சொடுக்குகையில் அதில் உள்ள வன்வட்டின் பகுதிகள் (Partitions) திரையில் காட்டப்படும்.

அதில் நாம் தானமைவாக இணையக்கூடிய அமைப்பை கட்டமைக்க அந்த வட்டினை தேர்வு செய்து இணைக்கவேண்டிய பகுதியையும் தெரிவு செய்துகொள்ளவேண்டும்.

அப்போது வன்வட்டின் பகுதிகளின் கீழ் ஒரு மூன்று தேர்வுகள் தோன்றும்.

முதல் தேர்வு – இயங்குதளத்தில் இணை (Mount)

இரண்டாம் தேர்வு – பகுதியை நீக்கு (Delete Partition) (தேர்வினை தேர்வுசெய்துவிடாதீர்கள் வன்வட்டின் அந்தபகுதியில் உள்ள தரவுகள் அனைத்தும் நீக்கப்பட்டு ஒதுக்கப்படாத நினைவிடமாக மாற்றப்பபட்டுவிடும்)

மூன்றாம் தேர்வு – பிற அமைப்புகளை இந்த தெரிவில் காணலாம்.

மூன்றாவது தேர்வினை சொடுக்கினால் ஒரு சுறுக்குப்பட்டி(Context Menu) விரியும் அதில் இணைக்கும் தெரிவுகளை திருத்து (Edit Mount Options) எனும் தொடுப்பை அழுத்தினால் இணைக்கும் தெரிவுகள் உரையாடல் பெட்டி(Dialog Box) தோன்றும்.

இணைக்கும் தெரிவுகள் உரையாடல் பெட்டியில் இருப்பவை எல்லாம் பயன்படுத்தா இயலா நிலையில் (grayed out) காட்சியளிக்கும்.

இதனைப் பயன்படுத்தும் நிலைக்கு கொணற பயனை அமர்வு இயல்புநிலை (User Session Default) அமைப்புகளை மாற்று பொத்தான் (toggle button) பயன்படுத்தி மாற்றும் போது எல்லா அமைப்புகளும் திருத்தகக் கூடிய நிலையில் மாறிவிடும். பின்னர் அதனை சேமித்தால் அந்த வன்வட்டின் பகுதி தானமைவாகவே இயங்குதளத்தின் தொடக்கத்தில் இணைக்கப்பட்டுவிடும்.

நன்றி

அடுக்கு பரிமாற்றம் (stack exchange) : https://askubuntu.com/questions/164926/how-to-make-partitions-mount-at-startup

முனையத்தில் பகுதிகளை இணைக்கும் வழிமுறையை மற்றொரு பதிவில் காணலாம்.

Kanchi-LUG Weekly Discussion 08-09-2024 Summary & My Experiments : )

By: Hariharan
14 September 2024 at 19:49

Talk 0:
Topic : MiniDLNA media server.
Name : Syed Jafer

எமது பைத்தான் வகுப்பின் பயிற்றுனர் செய்யது ஜாபர் தன்னுடைய கணினியில் miniDLNA பல்லூடக வழங்கி (media server) நிறுவுதல் குறித்தும் அதன் பயன்பாடுகள் குறித்தும் உரை வழங்கினார்.

அந்த பயன்பாட்டினை என்னுடைய உபுண்டு இயங்குதளத்தில் நிறுவியது குறித்து இப்பதிவில் காணலாம்.

எந்த பயன்பாட்டையும் உபுண்டு இயங்குதளத்தில் நிறுவல் செய்யவேண்டி இயங்குதளத்தினை நிகழ்நிலைப்படுத்தினேன் (updating)

sudo apt update

இயங்குதளத்தினை நிகழ்நிலைப்படுத்திய பிறகு

sudo apt install minidlna

நிறுவல் நல்லபடியாக முடிந்தது.

இப்பொழுது பல்லுடக வழங்கியைநமக்கு தேவைப்படும் படி கட்டமைத்துகொள்ளும் படிகளை ஒவ்வொன்றாக பார்க்கலாம்.

என்னுடைய கணிணியில் ஒரு பயனறே உள்ளபடியால் அவருக்கு மட்டும் நிறுவலைக் கட்டமைப்பு செய்வோம். பின்னர் பல்லூடக கோப்புகளின் இருப்பிடங்களை கட்டமைப்பு செய்வோம்.

எப்பொழுதும் கணினியில் கட்டமைவை மாற்றும் போது அதனை ஒரு காப்புபிரதி (backup) எடுத்து பயன்படுத்துதல் நன்று.

#media_dir=/var/lib/minidlna
media_dir=A,/home/hariharan/Music
media_dir=V,/home/hariharan/Videos
media_dir=P,/home/hariharan/Pictures
db_dir=/var/cache/minidlna

log_dir=/var/log/minidlna (create folder manually if not created automatically)

friendly_name=UbuntuMediaServer

மேற்கண்ட வரிகளில்

media_dir என்பது பல்லூடக கோப்புகளை வழங்கியில் காண்பிப்பதற்கான கட்டமைவு ஆகும்.

db_dir என்பது கோப்புகளின் பிற விவரங்களை சேமித்துவைக்க வழங்கி பயன்படுத்தும் கோப்புறை

log_dir என்பது வழங்கி பிழைச்செய்திமற்றும் பிற முக்கிய பயன்பாட்டின் நிகழ்வுகளை பதியும் கோப்புறை

friendly_name என்பது நமது வழங்கிக்கு நாம் வழங்கும் பெயர். பிற dlna நெறிமுறை மூலம் இயங்கும் பயன்பாடுகள் நமது வழங்கியை பயன்படுத்தும் போது இந்த பெயரின் கீழ் கோப்புகளை வழங்கும்.

எனது பரிசோதனைகள்

  1. MX Player – Android லிருந்து பல்லூடக வழங்கியை அணுகுதல்.

முடிவு: பல்லுடக வழங்கியை அனுகமுடியவில்லை.

  1. serveo.net பயன்படுத்தி பல்லூடக வழங்கியை அணுகுதல்.

முடிவு: பல்லூடக வழங்கியை அணுகமுடியவில்லை

Demystifying IP Addresses and Netmasks: The Complete Overview

24 August 2024 at 13:14

In this blog, we will learn about IP addresses and netmasks.

IP

The Internet Protocol (IP) is a unique identifier for your device, similar to how a mobile number uniquely identifies your phone.

IP addresses are typically represented as four Octets for IPv4, with each octet being One byte/Octets in size, and eight octets for IPv6, with each octet being two bytes/Octets in size.

Examples:

  • IPv4: 192.168.43.64
  • IPv6: 2001:db8:3333:4444:5555:6666:7777:8888

For the purposes of this discussion, we will focus on IPv4.

Do we really require four Octets structure with dots between them?

The answer is NO

The only requirement for an IPv4 address is that it must be 4 bytes in size. However, it does not have to be written as four octets or even with dots separating them.

Let’s test this by fetching Google’s IP address using the nslookup command.

Convert this to binary number using bc calculator in Bash shell.

And you can see it’s working.

This is because the octet structure and the dots between them are only for human readability. Computers do not interpret dots; they just need an IP address that is 4 bytes in size, and that’s it.

The range for IPv4 addresses is from 0.0.0.0 to 255.255.255.255.

Types of IP Addresses

IP addresses are classified into two main types: Public IPs and Private IPs.

Private IP addresses are used for communication between local devices without connecting to the Internet. They are free to use and secure to use.

You can find your private IP address by using the ifconfig command


The private IP address ranges are as follows:

10.0.0.0 to 10.255.255.255
172.16.0.0 to 172.31.255.255
192.168.0.0 to 192.168.255.255

Public IP addresses are Internet-facing addresses provided by an Internet Service Provider (ISP). These addresses are used to access the internet and are not free.

By default

Private IP to Private IP communication is possible.
Public IP to Public IP communication is possible.

However:

Public IP to Private IP communication is not possible.
Private IP to Public IP communication is not possible.

Nevertheless, these types of communication can occur through Network Address Translation (NAT), which is typically used by your home router. This is why you can access the Internet even with a private IP address.

Netmasks
Netmasks are used to define the range of IP addresses within a network.

Which means,

You can see 24 Ones and 8 Zeros.

Here, we have converted 255 to binary using division method.

255 ÷ 2 = 127 remainder 1

127 ÷ 2 = 63 remainder 1

63 ÷ 2 = 31 remainder 1

31 ÷ 2 = 15 remainder 1

15 ÷ 2 = 7 remainder 1

7 ÷ 2 = 3 remainder 1

3 ÷ 2 = 1 remainder 1

1 ÷ 2 = 0 remainder 1

So, binary value of 255 is 11111111

By using this, we can able to find the number of IP addresses and its range.

Since we have 8 zeros, so

Number of IPs = 2 ^8 which equals to 256 IPs. SO, the usable IP range is 10.4.3.1 – 10.4.3.254 and the broadcast IP is 10.4.3.255.

And we can also write this as 255.255.255.0/24 . Here 24 denotes CIDR (Classless Inter-Domain Routing).

Thats it.

Kindly let me know in comments if you are any queries in these topics.

நான் என்னுடய உபுன்டு 20.04 இயக்கமுறையின் கடவுச்சொல்லை மறந்துவிட்டேன்

By: Hariharan
3 August 2024 at 19:30

இந்த பதிவில் நான் எவ்வாறு என்னுடைய உபுன்டு இயங்குதளத்தை மீட்டெடுத்தேன் என்பதை முடிந்தளவு எளிமையாக கூற முயற்சித்துள்ளேன்.

இன்று காலை சரியாக ஒரு பதினோரு மணி இருக்கும் லினக்ஸில் இருக்கும் சில கட்டளைகளை நினைவு கூறுவோமெ என கணினியை எடுத்து உபுன்டு பூட் செய்துவிட்டு உள்நுழைவு பக்கம் வரும் வரை காத்திருந்தேன்.

உள்நுழைவு பக்கம் வந்தது பயனர் பெயர் மற்றும் கடவுச்சொல்லை உள்ளிட்டு (Enter)ஐ அழுத்தினேன். தவறான பயனர்பெயர் அல்லது கடவுச்சொல் எனும் பிழைச் செய்தி வருவதை கண்டு அதிர்ந்தேன்.

நான் இந்த உபுண்டு இயக்கமுறையை பயன்படுத்தி சில வருடங்கள் இருக்கும் கடைசியாக இதனைப் பயன்படுத்தியது 2021 என்று நினைக்கிறேன்.

தவறான கடவுச்சொல் என்று வருகிறதே. சரி நாம் பொதுவாக பயன்படுத்தும் கடவுச்சொல் அனைத்தும் பயன்படுத்திவிட்டேன். ஒன்றும் பயனளிக்கவில்லை தோல்வியே மிஞ்சியது.

பின்னர் கடவுசொல்லை வேரு எங்காவது எழுதிவைத்தேனா? என்னும் கோணத்தில் தேடுதல் தொடர்ந்தது.

சில மணித்துளிகள் கழித்து….

நமது சுயமாக உருவாக்கப்பட்ட(selfmade) குழுவில் பதிவொன்று போட்டேன். பன்னிரண்டு மணியாகியும் பயனர்கள் யாரும் இணைப்பில் இல்லததால் பதில் கிடைக்குமா கிடைக்காதோ என்ற அச்சம் ஒரு பக்கம் இந்த உபுண்டு இயக்கமுறையுடன் ஒரு வின்டோஸு இயக்கமுறையும் ஒரு வன்வட்டில் மற்றான் சகோதரர்கள் போல இணைந்தே இருந்தது உபுண்டு இயக்கமுறையை அழித்து மீண்டும் நிறுவ வேண்டுமா என்ற கேள்வி மறுபக்கம்.

எழுந்தேன் சிறிது தண்ணீர் குடித்துவிட்டு ஒவர்புலோவிலும்(stackoverflow) தீர்வை தேடினேன்.சரியான குறிச்சொற்கள்(keywords) பயன்படுத்தால் என்னவோ தீர்வு கிடைக்கவில்லை.

சரி நாம் புதிதாக இணைந்த லினக்ஸு குழுவிலும் (forums.tamillinuxcommunity.org) ஒரு பதிவை போட்டுவிடுவோம் எதாவது ஒரு இடத்தில் உதவி கிட்டும் என்ற நம்பிக்கையில் மதிய உணவு சாப்பிட சென்றேன்.

சாப்பிட்டு கொண்டிருந்த வேளையில் கைப்பேசியில் இரு செய்தி வந்தது 📲

சுயமாக உருவான நண்பர் ஒருவர் ஒரு யுடியுப் பதிவு ஒன்றை அனுப்பியிருந்தார். அந்த கானொளியில் கூறப்பட்ட கட்டளை களை பயன்படுத்தி பார்த்தேன்.

உபுண்டு இயக்கமுறை மீட்டெடுக்கும் முறையில் (Recovery mode) இயக்குவதற்கான தேர்வுகள் திரையில் தோன்றவில்லை.சிறிது சிந்தித்து பார்த்ததில் இயக்குமுறை தொடக்கும் (GRUB)ல் பொதியில் சில மாற்றங்கலை செய்தது நினைவுக்கு வந்தது (கடவுச்சொல் மட்டும் ஏனோ வரவில்லை 🤦‍♂️) .

சரி அடுத்த செய்தியை பார்க்கலாம் என்று அடுத்த செய்தியை படித்தேன். அங்கு இயக்குமுறை தொடக்கும் பொதியில் இயக்குமுறையை தொடங்கும் கணத்திலேயே சில கட்டளைகளை மட்டுமே மாற்றி இயக்குமுறையை மீட்டெடுக்கும் கட்டளை இயக்கியை (Recovery Shell) திறக்கும் முறையை ஒரு யுடூப் பதிவாளர் எளிமையான தமிழில் கூறியிருந்தார்.

ஒரு வழியாக இரண்டாவது முயற்சி கை கொடுக்கவே. கடவுச்சொல்லை மாற்றிவிட்டேன். எனது மாற்றான் சகோதரனை (ubuntu) மீட்டெடுத்தேன்.

பின்னினைப்பு :

  1. உபுன்டு மீட்டெடுக்கும் முறை 1 (Recovery Mode) https://youtu.be/cijFUPL6wKA?si=6MJN6PpCFTnw2y18

2. உபுன்டு மீட்டெடுக்கும் முறை 2

(Recovery Shell opening GRUB Command Edit)

https://youtu.be/azvV6FxocZI

3.https://forums.tamillinuxcommunity.org/t/how-to-reset-ubuntu-20-04-forgotten-root-password/2321

குறிப்பு:

லினக்ஸு கடவுச்சொல்லை மாற்றியமைக்க மேலெ கொடுக்கப்பட்ட இணைப்புகளில் இருக்கும் கட்டளைகளை இயக்கும்போது மிகுந்த கவனத்தோடு இயக்கவேண்டும்.நீங்கள் அறியாமல் கட்டளைகளில் தவறு செய்ய நேரிட்டால் நீங்கள் தரவுகளை இழக்ககூடும்.

Starting of a new Chapter

By: Saurav
5 June 2024 at 17:06

Just started my new session on Linux operating system. Had my first session today with one of my colleague around how Linux came into existence. How a problem to buy the driver for a printer led to creating a whole new world of open source. How people were restricted to using proprietary software where they were not able to do the changes. Different group of people came together from different parts of the world, some build the code some build the kernel and together they called it Linux GNU . Well!! that was all for the basic session. See you fellas tomorrow with something new.

Docker Installation

By: Kannan
24 September 2023 at 07:25

What is Docker?

Docker is an open platform for developing, shipping, and running applications. Docker enables you to separate your applications from your infrastructure so you can deliver software quickly. With Docker, you can manage your infrastructure in the same ways you manage your applications.

What is Docker Container

A Docker container image is a lightweight, standalone, executable package of software that includes everything needed to run an application.
Containers are an abstraction at the app layer that packages code and dependencies together. Multiple containers can run on the same machine and share the OS kernel with other containers, each running as isolated processes in user space.

Lets start the Docker Installation on Ubuntu
Step 1:Update and install the system dependencies before install docker

sudo apt-get update
sudo apt-get install ca-certificates curl gnupg -y

Step 2: Add GPG (GNU Privacy Guard) key is used to ensure the authenticity of the packages that are being downloaded from Docker

sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
echo \
  "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
  "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Step 3: Now we start install Docker & Docker plugins

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
  • InstallDocker-Compose Plugins
curl -L "https://github.com/docker/compose/releases/download/v2.21.0/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
ls -lsh /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
  • Verify the Docker & Docker compose version
 docker version && docker-compose version
  • Restart,enable the Docker service
sudo systemctl restart docker 
sudo systemctl enable docker 
  • Check the status of Docker service
sudo systemctl status docker

Step 4: Create a Docker Group and add user to the group

sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker

Finally Docker Engine Installation was successfully completed

Install PHP on Ubuntu using the terminal

17 August 2023 at 10:47

To install PHP on Ubuntu using the terminal, you can follow these steps:

  1. Update Package List: It's a good practice to start by updating your package list to make sure you're installing the latest version of PHP available in your repositories.
   sudo apt update
  1. Install PHP: You can install PHP along with commonly used extensions by running the following command:
   sudo apt install php
  1. Install Additional PHP Extensions (Optional): Depending on your project's requirements, you might need additional PHP extensions. You can search for available extensions using the following command:
   sudo apt search php- | grep '^php-'

Then, install the desired extension(s) using a command like:

   sudo apt install php-extension-name
  1. Check PHP Version: After installation, you can check the installed PHP version using:
   php -v
  1. Restart Web Server (if applicable): If you're planning to use PHP with a web server like Apache or Nginx, you'll need to restart the server to apply the changes.

For Apache:

   sudo systemctl restart apache2

For Nginx:

   sudo systemctl restart nginx

That's it! PHP should now be installed on your Ubuntu system. You can test it by creating a simple PHP file and running it through a web server, or you can use the built-in PHP CLI (Command Line Interface) to execute PHP scripts directly from the terminal.

I apologize for any confusion. The "php-extension-name" in my previous response was a placeholder for the actual name of the PHP extension you want to install. Let me clarify:

When installing PHP extensions on Ubuntu, you need to provide the correct package name for the extension you want to install. Here's how you can search for available PHP extensions and install them:

  1. Search for Available PHP Extensions: To find available PHP extensions, you can use the apt search command followed by "php-" as a prefix. This will list all the available PHP-related packages.
   sudo apt search php-
  1. Install the Desired PHP Extension: Once you've identified the extension you want to install from the search results, use the sudo apt install command to install it. Replace php-extension-name with the actual name of the extension.
   sudo apt install php-extension-name

For example, if you want to install the GD extension for image manipulation, the command would be:

sudo apt install php7.4-gd  # Replace "7.4" with your PHP version

Please replace php7.4-gd with the actual name of the extension you want to install. If you're unsure about the correct package name, you can refer to the search results from the apt search command.

Remember to adapt the version number (like "7.4") to the version of PHP you have installed on your system. If you're not sure about the PHP version, you can check it using the php -v command.

Install Drupal on Ubuntu using the terminal

17 August 2023 at 09:24

To install Drupal on Ubuntu using the terminal, you can follow these steps:

  1. Update System Packages: Open a terminal and update the package list to ensure you have the latest information about available packages.
   sudo apt update
  1. Install Apache Web Server: Install the Apache web server using the following command:
   sudo apt install apache2
  1. Install MySQL Database Server: Install MySQL server for your Drupal installation:
   sudo apt install mysql-server

During the installation, you'll be prompted to set a root password for MySQL.

  1. Install PHP and Required Extensions: Install PHP and the required extensions for Drupal:
   sudo apt install php libapache2-mod-php php-mysql php-gd php-xml php-mbstring php-ldap php-xmlrpc php-curl
  1. Create a MySQL Database for Drupal: Log into MySQL as the root user:
   sudo mysql -u root -p

Enter the MySQL root password, then create a database, user, and grant privileges to the user:

   CREATE DATABASE drupaldb;
   CREATE USER 'drupaluser'@'localhost' IDENTIFIED BY 'your_password';
   GRANT ALL ON drupaldb.* TO 'drupaluser'@'localhost';
   FLUSH PRIVILEGES;
   EXIT;
  1. Download and Extract Drupal: Navigate to your Apache web root directory:
   cd /var/www/html

Download the latest Drupal package:

   sudo wget https://www.drupal.org/download-latest/tar.gz -O drupal.tar.gz

Extract the archive:

   sudo tar -xzvf drupal.tar.gz

Rename the extracted folder to something cleaner (e.g., drupal):

   sudo mv drupal-x.y.z drupal
  1. Adjust Permissions: Set proper permissions for Drupal to access its files:
   sudo chown -R www-data:www-data drupal
  1. Configure Apache: Create a new virtual host configuration file:
   sudo nano /etc/apache2/sites-available/drupal.conf

Add the following configuration, adjusting paths and domains as needed:

   <VirtualHost *:80>
       ServerAdmin admin@example.com
       DocumentRoot /var/www/html/drupal
       ServerName your_domain.com

       <Directory /var/www/html/drupal/>
           Options Indexes FollowSymLinks
           AllowOverride All
           Require all granted
       </Directory>

       ErrorLog ${APACHE_LOG_DIR}/error.log
       CustomLog ${APACHE_LOG_DIR}/access.log combined
   </VirtualHost>

Enable the virtual host and Apache modules:

   sudo a2ensite drupal
   sudo a2enmod rewrite

Restart Apache to apply the changes:

   sudo systemctl restart apache2
  1. Drupal Installation: Open a web browser and visit http://your_domain.com. Follow the on-screen instructions to complete the Drupal installation.

Remember to replace your_domain.com with your actual domain name and adjust other settings according to your needs. This guide assumes a basic setup; you might need to adjust some details based on your specific environment and security requirements.

Try it Yourself:

Install MediaWiki on Ubuntu using the terminal

17 August 2023 at 09:16

To install MediaWiki on Ubuntu using the terminal, you can follow these steps:

  1. Update System Packages: Open a terminal and update your system's package list to ensure you have the latest information about available packages.
   sudo apt update
  1. Install Required Packages: MediaWiki requires a web server (typically Apache), a database (usually MySQL or MariaDB), and PHP. Install these packages:
   sudo apt install apache2 mysql-server php libapache2-mod-php php-mysql php-cli php-gd php-xml php-mbstring php-xmlrpc

During the installation of MySQL server, you will be prompted to set a root password for MySQL.

  1. Create MySQL Database and User: Log in to MySQL and create a new database and user for MediaWiki.
   sudo mysql -u root -p

Once inside the MySQL console:

   CREATE DATABASE mediawiki;
   CREATE USER 'mediawikiuser'@'localhost' IDENTIFIED BY 'your_password_here';
   GRANT ALL PRIVILEGES ON mediawiki.* TO 'mediawikiuser'@'localhost';
   FLUSH PRIVILEGES;
   EXIT;

Replace 'your_password_here' with a strong password of your choice.

  1. Download and Extract MediaWiki: Navigate to the /var/www/html directory and download the latest version of MediaWiki. You can find the link to the latest version on the MediaWiki website.
   cd /var/www/html
   sudo wget https://releases.wikimedia.org/mediawiki/1.37/mediawiki-1.37.0.tar.gz
   sudo tar -xzvf mediawiki-1.37.0.tar.gz
   sudo mv mediawiki-1.37.0 mediawiki
   sudo chown -R www-data:www-data mediawiki

Adjust the version number as needed.

  1. Configure Apache: Create a virtual host configuration file for MediaWiki.
   sudo nano /etc/apache2/sites-available/mediawiki.conf

Add the following configuration:

   <VirtualHost *:80>
       ServerAdmin webmaster@localhost
       DocumentRoot /var/www/html/mediawiki
       ServerName your_domain_or_ip
       ErrorLog ${APACHE_LOG_DIR}/error.log
       CustomLog ${APACHE_LOG_DIR}/access.log combined
   </VirtualHost>

Replace your_domain_or_ip with your server's domain name or IP address.

Enable the virtual host and reload Apache:

   sudo a2ensite mediawiki.conf
   sudo systemctl reload apache2
  1. Complete Installation via Web Browser:
    Open a web browser and navigate to http://your_domain_or_ip. Follow the on-screen instructions to complete the MediaWiki installation. You'll need to enter the database details and set up an admin account.

  2. Finalize Configuration:
    After the installation, you may need to adjust some permissions and settings. Refer to the MediaWiki Installation Guide for further information.

Remember that software versions and URLs may change over time, so make sure to refer to the official MediaWiki documentation for the most up-to-date instructions.

Try it YourSelf:

❌
❌