Catatan IT1
Catatan IT1
Catatan IT1
#sudo apt-get -qq --print-uris install openvpn | cut -d\' -f 2 > urls_openvpn.txt
#sudo apt-get -qq --print-uris install gnome-disks-utility | cut -d\' -f 2 > disks-
x18-64b.txt
#sudo apt-get -qq --print-uris install gparted | cut -d\' -f 2 > gparted-x18-
64b.txt
#sudo apt-get -qq --print-uris install p7zip-rar unrar| cut -d\' -f 2 > p7ziprar-
x18-64b.txt
#sudo apt-get -qq --print-uris install gpaint gnome-paint mtpaint | cut -d\' -f 2 >
gpaint-x18-64b.txt
/* overwrite already installed pkg & install all *.deb ubuntu14.04 recursively
------------------
====================================
[MYSQL]
#ceger= bismillah
#other= bismillah99
====================================
[setting LAN dobel, ceger]
-----------------------
#CEGER
1. IP= 192.168.1.10 ---> internet dulu
GW= 192.168.1.1
-----------------
==========================
[RASPBERRY PI]
---------
#sudo nano [or leafpad] /etc/cups/cupsd.conf
#
< Location / >
# Restrict access to the server...
Order allow,deny
Allow @local
< /Location >
----------------
## power on, converter hdmi on, screen blank
----------
## layar monitor seperti kepotong (overscan, batas pinggir kebanyakan)
------------
# edit config file
--------------
# sudo leafpad /boot/config.txt
====================================
====================================
====================================
[wxp sp3]
B7Q4M-JVJFH-R6HCP-M3V4R-DRVDD
7QVT6-T2738-WRKJB-YKRFQ-XVK98
[ms-office 2007]
VMRGQ-G3YMP-RWYH2-4TQ97-CT2HD
T3PVR-XX42X-T49DW-WGBG6-9FT73
KJYPC-VDYR6-82242-PFR9R-688VM
DPK3W-F6FGP-9JDGJ-23VQM-TRHYB
R2WBR-GG6HV-GTPMB-RG9B9-YBJVM
Microsoft Office 2007
KGFVY-7733B-8WCK9-KTG64-BC7D8
BHFYK-9RTKR-RV3J6-X669J-XQ3Q8
GKYCK-VGPKM-YYXMY-W89CK-KJ8BJ
JWR9T-HFR92-74RQ7-3FRMB-CY676
KGFVY-7733B-8WCK9-KTG64-BC7D8
TW6JJ-D28JW-B7KRM-44W66-MGVGY
BC322-3PV3J-YVJ3Q-VY7M2-GBDQ8
CDHDX-4GP8V-D9VMK-D67RY-9MPVW
FWP7T-XP3Y4-WMH89-PMM96-WR4MJ
CWXHV-R2HQQ-GGKRJ-MWDCQ-M7QQ8
TXY44-W23PY-8VFQD-HYVR6-CCFMJ
JKJDC-DMBT4-9MJGV-KFMT3-Q9DQM
TT3M8-H3469-V89G6-8FWK7-D3Q9Q
GM3C4-HQQJV-4TGMX-3R8CP-G928Q
TT3M8-H3469-V89G6-8FWK7-D3Q9Q
=======================================
---------------------------------------
[SWAP]
or,
make permanent:
add:
check:
#cat /proc/meminfo
===================================
[SSH]
#sudo iptables -L
#iptables-save
--------------------------------
#cd /root/.ssh
#vi known_hosts
*delete everyting on that file
#service sshd restart
------------------------------
[OPENVPN]
#cp /etc/default/openvpn
#cp /etc/init/myopenvpn.conf
#cp /etc/openvpn
=====================================
[NEW USER]
#sudo su
==========================
[sudoer, sudo hilang, non-sudo]
The change will take effect the next time the user logs in.
As long as you have access to a user that is in the same groups as your "original"
user, you can delete the old one.
Realistically, there are also other groups your new user should be a member of. If
you set the Account type of a user to Administrator in Users Settings, it will be
placed in at least all of these groups:
------------
OR
=====================================
[PABX]
=====================================
[youtube-dl]
#hash -r
#youtube-dl --version
#youtube-dl -a youtube-dl01.txt
-------------------
#clipgrab
sudo add-apt-repository ppa:clipgrab-team/ppa
sudo apt-get update && sudo apt-get install clipgrab
=====================================
[mikrotik]
#port:
1. speedy
2. 192.168.0.3
3. 192.168.2.1
4. 192.168.3.1
5. 192.168.5.1
===========================================
[DB IT ahadmart google.docs, dokumen IT]
https://docs.google.com/spreadsheet/ccc?
key=0AlhIcH1WUQecdEMwR1MzNjB0ZXBwSzFORjM3TGMyX3c&usp=sharing#gid=0
https://docs.google.com/spreadsheets/d/1-D0CTsT-ka95B_M3ClzgCMTYIEKeAY2O_GQzDtZ-
6Z8/edit
===========================================
[ahadpos2]
timeout page
#session.gc_maxlifetime = 7200
#timezone = Asia/Jakarta
#sudo cp /root/.ssh
/* databases */
/* update */
#cd /var/www/html
#sudo rm -r ahadpos2
#sudo mkdir ahadpos2
#cd ahadpos2
----------------------------------------------
==============================================
[ahadpos 3]
/* fix supplier
# use ahadpos3;
----------------------------------
## NOTE : mysql 5.7 will NOT accept empty password with mysql_native_password
plugin
## NOTE : mysql 5.7 default to auth_socket plugin.
## This causes Yii framework to fail with error SQLSTATE 1698 :
## https://translate.google.co.id/translate?hl=en&sl=zh-
CN&u=http://www.codes51.com/article/detail_273734.html&prev=search
## http://dev.mysql.com/doc/refman/5.7/en/error-messages-
server.html#error_er_access_denied_no_password_error
# edit config, make sure the password there for MySQL is correct
nano protected/config/db.php
# edit install script, make sure the password there for MySQL is correct (mysql
-u[user] -p[password])
nano fresh-install.sh
# execute the install script
/var/www/ap3/fresh-install.sh
# done !
# OR
# open this link on the browser :
# http://localhost/ap3/fresh-install.php
# user: admin
# pass: admin
===========================================
[misc.]
[boot]
===========================================
ram 4gb
enlight
proc core i3, i4
msi
hdd 500gb x 2
case cooler master
===========================================
[autostart]
-----------------------------------
===========================================
[resep makanan/masakan]
https://www.youtube.com/watch?v=e8P_9bGpENk
https://www.youtube.com/watch?v=VzAgEiR43Bs
https://www.youtube.com/watch?v=Li3MOgLfDNo
-----------------------------------
===========================================
[cek running process]
#top
#kill -9 7066
-----------------------------------
===========================================
[wifi]
-----------------------------------
===========================================
[password]
192.168.5.30/gudang/phpmyadmin
root, bismillah99
-----------------------------------
===========================================
[Ahadmart]
( Toko Ahadmart, lantai III. Lokasi dekat pintu belakang Kampus STAN )
===========================================
[firefox]
/* settings
#about:config
===========================================
[bahasa arab]
mughaffal= lalai
dha-i'= sia-sia
-----------------------------------
===========================================
[s/w ori]
OEM Win 7 Pro harga Rp. 1.860.000/unit ($143,07; @Rp. 13.000; BCA)
OEM Win 7 Ultimate tidak keluar lagi.
OEM MS Office 2013 harga Rp. 2.460.000/unit ($189,23; @Rp. 13.000; BCA)
OEM MS Office 2007 sudah tidak keluar lagi.
Terima kasih.
Regards,
Leni
PT Trikomindo Karunia Utama
Komplek Harco Mangga Dua Elektronik,
Ruko Apartemen Pesona Bahari Blok R-17
Jl. Mangga Dua Raya - Jakarta Pusat 10730
' : +62 21 6120196 - 6120197 - 94552777 ext 104
Ê : +62 21 71003711
* : [email protected]
-----------------
7 pro $140
OHB 2013 $185
regards
Dewie
YM : dewi_dau
Email : [email protected]
kios software
===========================================
[cek versi]
#lsb_release -a
#uname -a
-----------------------------------
===========================================
[Toko Komputer Plaza Bintaro]
Get Direction /Plaza Bintaro, Lantai 3 Blok T Unit 15, Jl. Bintaro Utama Iii Sektor
3a, Pesanggrahan, Jakarta Selatan, Indonesia 12330, Jakarta, Indonesia
-----------------------------------
Gelatik Komputer
Toko Komputer yang menyediakan berbagai jasa peralatan komputer anda ini terletak
di Ruko Graha Marcela Sektor 3 Bintaro Jaya.
-----------------------------------
[bhinneka.com]
021 2929 2828 ext. 5532 (mb'dewi)
-----------------------------------
-----------------------------------
===========================================
[#print-uris, #offline install shell]
#sudo apt-get -qq --print-uris install gnome-disk-utility | cut -d\' -f 2 > gnome-
disk-64b.txt
===========================================
[raspberry pi]
restart network
# sudo ifdown eth0:0
# sudo ifup eth0:0
In order to link a printer with the Raspberry Pi, we first need to install Common
Unix Printing System (CUPS). It’s time to fire up your Pi and navigate to the
terminal (either on the Pi itself of via SSH).
When prompted to continue, type Y and press enter. CUPS is a fairly beefy install,
so feel free to go grab a cup of coffee. Once the base installation is complete, we
need to make a few small administrative changes. The first order of business is to
add ourselves to the usergroup that has access to the printers/printer queue. The
usergroup created by CUPS is “lpadmin”. The default Rasbian user (and the user
we’re logged into) is “pi” (adjust the following command accordingly if you want a
different user to have access to the printer).
For the curious, the “-a” switch allows us to add an existing user (pi) to an
existing group (lpadmin), specified by the “-G” switch.
Comment out the “Listen localhost:631” line and replace it with the following:
This instructs CUPS to listen for any contact on any networking interface as long
as it is directed at port 631.
Scroll further down in the config file until you see the “location” sections. In
the block below, we’ve bolded the lines you need to add to the config:
The addition of the “allow @local” line allows access to CUPS from any computer on
your local network. Anytime you make changes to the CUPS configuration file, you’ll
need to restart the CUPS server. Do so with the following command:
After restarting CUPS, you should be able to access the administration panel via
any computer on your local network by pointing its web browser at http://[the Pi’s
IP or hostname]:631.
Adding a Printer to CUPS
When you first navigate to http://[the Pi’s IP or hostname]:631, you’ll see the
default CUPS homepage, as seen in the screenshot above. The section we’re
interested in is the “Administration” tab. Click on it now.
Within the Administration panel, click add printer. If you receive a warning about
the site’s security certificate, go ahead and click proceed anyway to ignore it.
You’ll be prompted to enter a username and password.
Go ahead and enter the username and password of the account you added to the
“lpadmin” group earlier in the tutorial (e.g. if you’re using a default Raspbian
install, the login/password is “pi”/”raspberry”). Click “Log In”.
After logging in, you’ll be presented with a list of discovered printers (both
local and networked). Select the printer you wish to add to the system:
After selecting the printer, you’ll be offered an opportunity to edit the name,
description, and location of the printer, as well as enable network sharing. Since
our printer is already a network printer, we left “Share This Printer” unchecked:
After editing the printer name and adding a location, you’ll be prompted to select
the specific driver you want to use for your printer. Despite the fact that it
automatically discovered the printer and the printer name, CUPS makes no attempt to
pick the right driver for you. Scroll until you see a model number that matches
yours. Alternatively, if you have a PPD file for the printer that you have
downloaded from the manufacturer, you can load that with the “Choose File” button:
The last configuration step is to look over some general print settings like what
you want the default printer mode to be, the default paper source/size, etc. It
should default to the correct presets, but it never hurts to check:
After you click “Set Default Options”, you’ll be presented with the default
administration page for the printer you just added to the CUPS system:
Everything looks good. The real test, however, is actually printing something.
Let’s fire up Leafpad, Rasbian’s default text editor, and send a message:
While we realize it’s a bit premature to write “huge success” on our test print
before, you know, it’s actually printed, we were that confident. Fifteen seconds or
so later, the document came rolling out of the printer and dropped into the tray.
Success!
-----------------------------------
===========================================
[youtube-dl, #aulad, #ipa, #ilmualam]
err-https://www.youtube.com/watch?v=bHLJ06ysVs8
https://www.youtube.com/watch?v=yR8W0MrpUgA
https://www.youtube.com/watch?v=ENNAH7Edehg
https://www.youtube.com/watch?v=o0oNRRnPrIY
https://www.youtube.com/watch?v=Icb-846hXgk
https://www.youtube.com/watch?v=kmqrxmhfCBI
https://www.youtube.com/watch?v=Kdl0B6BzyLs
https://www.youtube.com/watch?v=luA0ZXlFuEM
https://www.youtube.com/watch?v=t7M88YwZ-SQ
https://www.youtube.com/watch?v=S9SBTdMQVXM
https://www.youtube.com/watch?v=sHuhkCBpcck
https://www.youtube.com/watch?v=paav8MR5Jxk
https://www.youtube.com/watch?v=DsYW1Gnla3c
https://www.youtube.com/watch?v=gnt9lEbvYBU
#tayo galery
https://www.youtube.com/watch?v=oEinHb6hk6s&list=PLw06t3KbLolJAX7Nk3SwwgJT-sr8bdVkp
https://www.youtube.com/watch?v=2dBr56LWujc&list=PLK2bnEbDS0gY_Lqz-KV2qXBmzdxAfDmfG
https://www.youtube.com/watch?v=yR8W0MrpUgA&list=PLw06t3KbLolKcyQFA0JrU0RhxbquKQyZ5
https://www.youtube.com/watch?v=GtxfH4TtG3A&list=PLtZkvoR6bi9Y0JROLPzlG4c-BXOg27Q6d
https://www.youtube.com/watch?v=GtxfH4TtG3A&list=PLs26hJ0hXckXyHp_DxND02McpIzjGx8pS
-----------------------------------
-----------------------------------
[]
-----------------------------------
===============||||||||||||||||||||============================
[avidemux]
===============||||||||||||||||||||============================
===========================================
[ahadpos3]
/media/tekhnisi/hdd-kecil01/master/ahadpos3/protected/views/pos/pesanan_ubah.php
-----------------------------------
===========================================
===========================================
[imels, @gmail.com]
*t3x60*
-----------------------------------
===========================================
[mysql]
Firstly, you must confirm which version of MySQL on Ubuntu you are running as
commands will be different.
mysql -V
If you are on MySQL version 5, you will see something similar to:
mysql Ver 14.14 Distrib 5.7.30, for Linux (x86_64) using EditLine wrapper
Keep note of your “Distrib”. In the above example, we are on MySQL 5.7. Keep note
of this for later.
In order to skip the grant tables and reset the root password, we must first stop
the MySQL service. Enter your Linux password if prompted.
# sudo /etc/init.d/mysql stop
Now start MySQL with the --skip-grant-tables option. The & is required here.
[1] 1283
user@server:~$ 2019-02-12T11:15:59.872516Z mysqld_safe Logging to syslog.
2019-02-12T11:15:59.879527Z mysqld_safe Logging to '/var/log/mysql/error.log'.
2019-02-12T11:15:59.922502Z mysqld_safe Starting mysqld daemon with databases
from /var/lib/mysql
You can now log in to the MySQL root account without a password.
flush privileges;
flush privileges;
Exit MySQL.
exit
For MySQL 5.7 on Ubuntu, run this command to change the root password. Replace
your_password_here with your own. (Generate a strong password here)
Flush privileges.
# flush privileges;
Exit MySQL.
# exit
For MySQL 5.6 on Ubuntu, run this command to change the root password. Replace
your_password_here with your own. (Generate a strong password here)
Flush privileges.
flush privileges;
Exit MySQL.
exit
Make sure all MySQL processes are stopped before starting the service again.
Log in to MySQL again and you should now be prompted for a password.
Enter your MySQL root password. If correct, you should see something like:
Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
/* split by 20MB file source avidemux_xxx to file avidemux-xxx- with suffix at the
end by numeric (00,01,02,...)
#split -b 20M avidemux_2.7.4.appImage avidemux-2-7-4.appImage- -d
-----------------------------------
===========================================
[setting vpn.ahadmart]
-----------------------------------
Setting VPN (untuk remote ahadpos)
===========================================
[misc. timestamp, file dates changer]
-----------------------------------
In the terminal go to the directory for date-edit. Then type:
You wil see a ">" after you hit enter, exept for the last time -> "done".
Note: You may want to change "200512171513"
"200512171513" = is the date you want for all the files in this directory.
Where:
-a = accessed
-m = modified
-t = timestamp - use [[CC]YY]MMDDhhmm[.ss] time format
If you wish to use NOW just drop the -t and the timestamp.
--------------------------
[cek installed package]
1. Open the terminal application or log in to the remote server using ssh (e.g.
ssh user@sever-name )
2. Run command apt list --installed to list all installed packages on Ubuntu.
===========================================
[ahadpos 3 update]
===========================================
[]
-----------------------------------
===========================================
[]
-----------------------------------
===========================================
[]
-----------------------------------
===========================================
[]
-----------------------------------
===========================================