Just a little manual linux

  • Jika tidak bisa minin/max desktop di ubuntu, lakukan command berikut :

    gsettings set org.gnome.shell.extensions.dash-to-dock click-action ‘minimize’

    ¶¶¶¶¶

    ¶¶¶¶¶

    ¶¶¶¶¶

    ¶¶¶¶¶

    ¶¶¶¶¶

  • Nemu kendala auto install print HP P1102 di centos?

    Jalankan

    systemctl stop cups-browsed

    Untuk menjalankan lagi

    systemctl stop cups-browsed

    Atau jika OS lama bisa jalankan

    service cups-browsed stop

    atau

    service cups-browsed start

    ¶¶¶¶¶

    ¶¶¶¶¶

    ¶¶¶¶¶

    ¶¶¶¶¶

    ¶¶¶¶¶

  • Spek Ubuntu 16.04

    Install dosemu,nmap,ssh complete

    SSH

    systemctl enable ssh.socket

    gagalllll…autoogin ubuntu

    Create the folder: /etc/systemd/system/getty@tty1.service.d

    Create the file: /etc/systemd/system/getty@tty1.service.d/override.conf

    Open the file with your favorite editor and add this:

    [Service]
    ExecStart=
    ExecStart=-/sbin/agetty --noissue --autologin myusername %I $TERM
    Type=idle
    

    mkdir -p /etc/systemd/system/getty@tty1.service.d/

    Create a file at /etc/systemd/system/getty@tty1.service.d/autologin.conf with contents:

    [Service]
    ExecStart=
    ExecStart=-/sbin/agetty –autologin USERNAME –noclear %I \$TERM

    You can use ‘mingetty’ to autologin.

    sudo apt-get install mingetty
    

    Then edit /etc/init/tty1.conf

    Change the line saying

    exec /sbin/getty -8 38400 tty1
    

    Into

    exec /sbin/mingetty --autologin root --noclear tty1
    

    Yes you can. As described here (ubuntuhandbook.org – Boot into text console ubuntu) you need to edit /etc/default/grub to have the next boot end up in text mode. In summary you will set these parameters:

    GRUB_CMDLINE_LINUX="text"
    GRUB_TERMINAL=console
    

    After saving changes you need to run:

    sudo update-grub
    

    RC.LOCAL di UBUNTU

    1. Create a service:
      sudo vi /etc/systemd/system/rc-local.service
      
    2. Add your code there:
      [Unit]
      Description=/etc/rc.local Compatibility
      ConditionPathExists=/etc/rc.local
      
      [Service]
      Type=forking
      ExecStart=/etc/rc.local start
      TimeoutSec=0
      StandardOutput=tty
      RemainAfterExit=yes
      SysVStartPriority=99
      
      [Install]
      WantedBy=multi-user.target
      
    3. Create and make sure /etc/rc.local is executable and add this code inside it:

      sudo chmod +x /etc/rc.local

      #!/bin/sh -e
      #
      # rc.local
      #
      # This script is executed at the end of each multiuser runlevel.
      # Make sure that the script will "exit 0" on success or any other
      # value on error.
      #
      # In order to enable or disable this script just change the execution
      # bits.
      #
      # By default this script does nothing.
      
      exit 0
      
    4. Enable the service:
      sudo systemctl enable rc-local
      
    5. Start service and check status:
      sudo systemctl start rc-local.service
      sudo systemctl status rc-local.service
      
    6. If all goes well you can add your code to the /etc/rc.local file then restart it.

    run init 3

    sudo systemctl enable multi-user.target
    sudo systemctl set-default multi-user.target

    ¶¶¶¶¶

    ¶¶¶¶¶

    ¶¶¶¶¶

    ¶¶¶¶¶

    ¶¶¶¶¶

  • AUTOLOGIN TTY

    rm /etc/systemd/system/getty.target.wants/getty@tty1.service

    cp /lib/systemd/system/getty@.service /etc/systemd/system/getty@tty1.service

    edit

    [Service]
    ...
    ExecStart=-/sbin/agetty --autologin kasir --noclear %I
    ...
    [Install]
    ...
    ;Alias=getty@tty1.service

    ln -s /etc/systemd/system/getty@tty1.service /etc/systemd/system/getty.target.wants/getty@tty1.service

    reboot

     

    BOOTING INIT 3

    [root@kassa ~]# systemctl get-default
    graphical.target

    [root@kassa ~]# systemctl list-units –type=target

    UNIT LOAD ACTIVE SUB DESCRIPTION
    basic.target loaded active active Basic System
    cryptsetup.target loaded active active Encrypted Volumes
    getty.target loaded active active Login Prompts
    graphical.target loaded active active Graphical Interface
    local-fs-pre.target loaded active active Local File Systems (Pre)
    local-fs.target loaded active active Local File Systems
    multi-user.target loaded active active Multi-User System
    network-online.target loaded active active Network is Online
    network.target loaded active active Network
    nfs-client.target loaded active active NFS client services
    nss-user-lookup.target loaded active active User and Group Name Lookups
    paths.target loaded active active Paths
    remote-fs-pre.target loaded active active Remote File Systems (Pre)
    remote-fs.target loaded active active Remote File Systems
    slices.target loaded active active Slices
    sockets.target loaded active active Sockets
    sound.target loaded active active Sound Card
    swap.target loaded active active Swap
    sysinit.target loaded active active System Initialization
    timers.target loaded active active Timers

    [root@kassa ~]# systemctl set-default multi-user.target
    Removed symlink /etc/systemd/system/default.target.
    Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/multi-user.target.

    [root@kassa ~]# systemctl get-default
    multi-user.target

    [root@kassa ~]# reboot

     

    Merubah startup Centos 7 ke mode Console

    # vi /etc/default/grubHapus  rhgb quiet

    #GRUB_CMDLINE_LINUX=”rd.lvm.lv=centos/root rd.lvm.lv=centos/swap crashkernel=auto rhgb quiet”
    GRUB_CMDLINE_LINUX=”rd.lvm.lv=centos/root rd.lvm.lv=centos/swap crashkernel=auto”

    Jika ingin merubah resolusi tambahkan (ini untuk res rendah)

    GRUB_CMDLINE_LINUX_DEFAULT=”video=640×480″
    GRUB_GFXMODE=640×480
    GRUB_GFXPAYLOAD_LINUX=keep

    Kemudian update /boot/grub2/grub.cfg for next boot

    # grub2-mkconfig -o /boot/grub2/grub.cfg

    # grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg

     

    EDIT LOG KERNEL (agar tidak muncul di console)

    sysctl -w kernel.printk=”3 4 1 3″

     

    Modif Profile Login

    vi /etc/motd

     

    Make /etc/rc.local works in CentOS 7

    Due to systemd introduced in CentOS 7, the /etc/rc.local not enabled by default, you should make /etc/rc.local executable by your hand.

    Just run

    chmod a+x /etc/rc.local

    and restart your CentOS 7 , see if it works

     

     

     

    DOSEMU
    Jalanin aplikasi foxpro nggak bisa

    tambahin
    $_cpu_emu = “full”

    ¶¶¶¶¶

    ¶¶¶¶¶

    ¶¶¶¶¶

    ¶¶¶¶¶

    ¶¶¶¶¶

  • Setelah install semua driver

    tambahkan
    scsi “EPSON L3110”
    usb 0x04b8 0x1142
    di /etc/sane.d/epson2.conf

    baru jalankan sane/simple scan

    ¶¶¶¶¶

    ¶¶¶¶¶

    ¶¶¶¶¶

    ¶¶¶¶¶

    ¶¶¶¶¶